#生成的可执行文件名
TARGET = run

#源文件路径 用‘：’隔开
VPATH  = ../../plcc/thread:\
				 ../../plcc/event_queue:\
				 ../../plcc/setting:\
				 ../../plcc:\
				 ./

#使用的编译工具
CC     = g++

#生成端中间文件
OBJ    = test.o ThreadException.o Thread.o Mutex.o Event.o\
					WorkThreads.o PlayThread.o SettingThread.o\
					CheckThread.o UpdateThread.o EventProcess.o\
					UserSettings.o I2CInterface.o

$(TARGET):$(OBJ)
	$(CC) -o $(TARGET)  $(OBJ) -lpthread 

ThreadException.o : ThreadException.h
Thread.o          : Thread.h
Mutex.o           : Mutex.h
Event.o           : Event.h
WorkThreads.o     : WorkThreads.h 
PlayThread.o      : WorkThreads.h
SettingThread.o   : WorkThreads.h
CheckThread.o     : WorkThreads.h
UpdateThread.o    : WorkThreads.h
EventProcess.o    : EventProcess.h
UserSettings.o    : UserSettings.h
I2CInterface.o    : I2CInterface.h

.PHONY : clean
clean:
	-rm $(TARGET) $(OBJ)
